import request from '@/utils/request'

/**
 * 登录接口
 * @param {object} data
 * @returns Promise
 */
export const loginAPI = (data) => request({
  url: '/user-service/user/login',
  method: 'POST',
  data
})
export const userInfoAPI = (id) => request({
  url: `user-service/user/${id}`
})
